home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / midas060 / src / midasdll.mak < prev    next >
Encoding:
Makefile  |  1997-01-16  |  1.6 KB  |  67 lines

  1. #*      midasdll.mak
  2. #*
  3. #* Make script for MIDAS Sound System Win32 DLL
  4. #*
  5. #* $Id: midasdll.mak,v 1.3 1997/01/16 19:43:33 pekangas Exp $
  6. #*
  7. #* Copyright 1996,1997 Housemarque Inc.
  8. #*
  9. #* This file is part of the MIDAS Sound System, and may only be
  10. #* used, modified and distributed under the terms of the MIDAS
  11. #* Sound System license, LICENSE.TXT. By continuing to use,
  12. #* modify or distribute this file you indicate that you have
  13. #* read the license and understand and accept it fully.
  14. #*
  15.  
  16. MIDASDIR = .
  17. MIDASINCS = $(MIDASDIR)
  18. MIDASLIB = $(MIDASDIR)\midasnt.lib
  19.  
  20. !ifndef DLLNAME
  21. DLLFILE = midas.dll
  22. LIBFILE = midasdll.lib
  23. !else
  24. DLLFILE = $(DLLNAME).dll
  25. LIBFILE = $(DLLNAME).lib
  26. !endif
  27.  
  28.  
  29.  
  30.  
  31. !ifdef VISUALC
  32.  
  33. CC = cl
  34. CFLAGS =  -c -W3 -WX -YX -Zp1 -MT -nologo -O2 -Ot -G5 -D__VC32__ -DDEBUG \
  35.         -DNOTIMER -DDLL_EXPORT -D__NT__
  36.  
  37. !else
  38.  
  39. CC = wcc386
  40. CFLAGS = -w3 -we -oneatx -5r -bt=nt -mf -bd -i$(MIDASINCS) -d__WC32__ \
  41.         -dDEBUG -dNOTIMER -dDLL_EXPORT
  42.  
  43. !endif
  44.  
  45.  
  46. all :           $(DLLFILE) $(LIBFILE)
  47.  
  48. !ifdef VISUALC
  49.  
  50. $(LIBFILE) $(DLLFILE) :         midasdll.obj $(MIDASLIB)
  51.         link /dll /debug /debugtype:cv /out:$(DLLFILE) /implib:$(LIBFILE) \
  52.                 /machine:x86 midasdll.obj $(MIDASLIB) winmm.lib
  53.  
  54. !else
  55.  
  56. $(LIBFILE) :    $(DLLFILE)
  57.         wlib $(LIBFILE) +-$(DLLFILE)
  58.  
  59. $(DLLFILE) :    midasdll.obj $(MIDASLIB)
  60.         wlink system nt dll option caseexact option map name $(DLLFILE) \
  61.                 file midasdll library $(MIDASLIB)
  62.  
  63. !endif
  64.  
  65. midasdll.obj :          midasdll.c midasdll.h
  66.         $(CC) $(CFLAGS) midasdll.c
  67.